<template>
  <div class="hot_t">
    <router-link
      :to="{
                path:'/search',
                query:{
                        link:c.link,
                        title:c.title
                              
                            }
              } "
      tag="div"
      class="hot_title"
      v-for="(c,i) in items"
      :key="i"
    >
      <img :src="c.image" alt />
      <p>{{ c.title }}</p>
    </router-link>
  </div>
</template>
<script>
export default {
  props: {
    items: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  methods: {
    classification(e) {
      console.log(e);
    }
  }
};
</script>
<style lang="less" scoped>
.hot_t {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .hot_title {
    width: 180px;
    font-size: 14px;
    padding: 10px 0px;
    img {
      width: 80%;
      object-fit: contain;
      object-position: center;
    }
  }
}
</style>